Select
  RelationAccountWithoutDots,
  Aantal,
  Eerste,
  Laatste
From
  (Select
    RelationAccountWithoutDots,
    Count(RelationAccountWithoutDots) As Aantal,
    Min(Eerste) As Eerste,
    Max(Laatste) As Laatste
  From
    (Select
      [Transaction].RelationAccountWithoutDots,
      [Transaction].FKRelation,
      Min([Transaction].id) As Eerste,
      Max([Transaction].id) As Laatste
    From
      [Transaction]
    Where
      [Transaction].RelationAccountWithoutDots <> ''
    Group By
      [Transaction].RelationAccountWithoutDots, [Transaction].FKRelation)
  Group By
    RelationAccountWithoutDots)
Where
  Aantal > 1
